
function send() {
    var time = 60;
    var timer = setInterval(function () {
        if (time) {
            document.getElementById('to').innerHTML = ('距离下次发送还有' + time + '秒');
            time--;
        } else {
            document.getElementById('to').innerHTML = ('请重新发送验证码');
            clearInterval(timer)
        }
    }, 1000);
}
